package com.bolt.convention.validation.validators;

/**
 * 手机校验
 */
class MobileValidatorUtil {

    private static final String REGEX_MOBILE = "^1\\d{10}$";

    public static boolean validate(String mobile) {
        if (mobile == null) {
            return false;
        }
        return mobile.matches(REGEX_MOBILE);
    }
}
